/*
 ============================================================================
 Name        : Ccally.c
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include "Cally.h"
#include "Packet.h"
#include "CallyWrapper.h"

#include <unistd.h>
#include <stdio.h>
#include <pthread.h>

int main(void)
{
 	printf("Start up Cally!\n");

	int Res = 0;

	if ((Res = Cally_Initialize(0)) != CALLY_OK)
	{
		printf("Cally init error: %i\n", Res);
		return -1;
	}

	sleep(1);

	CallyWrapper_Initialize();

	pthread_join(Cally_CallyThreadId, NULL);

	Cally_Finalize();

	printf("Bye bye!\n");

	return 0;
}
